package com.hoshiibuy.spu.feign;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.spu.feign.hystrix.HystrixCompanyFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 公司微服务FeignClient
 *
 * @author : yangcheng
 * @date : 2019/5/6 14:23
 * @mail : maiboyc@163.com
 **/
@FeignClient(name = "hoshiibuy-company", fallback = HystrixCompanyFeignFallback.class)
public interface CompanyFeignService {

    /**
     * 根据id获取
     * @param id ID
     * @return Response
     */
    @GetMapping(value = "/company/")
    Response getById(Long id);
}
